package com.zxp.web.sys_menu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxp.web.sys_menu.entity.AssignTreeVO;
import com.zxp.web.sys_menu.entity.AssignTreeParam;
import com.zxp.web.sys_menu.entity.SysMenu;

import java.util.List;

/**
 * @author MasterZ
 * @Date 2025/10/4 09:41
 */
public interface SysMenuService extends IService<SysMenu> {
    List<SysMenu> getParent();

    //根据userId查询菜单
    List<SysMenu> getMenuByUserId(Long userId);

    //根据roleId查询菜单
    List<SysMenu> getMenuByRoleId(Long roleId);

    //查询菜单树
    AssignTreeVO getAssignTree(AssignTreeParam param);
}
